package com.exam.service;

import com.exam.entity.JudgeQuestion;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface JudgeQuestionService {
    JudgeQuestion addJudgeQuestion(JudgeQuestion judgeQuestion);

    JudgeQuestion updateJudgeQuestion(Long id, JudgeQuestion judgeQuestion);

    void deleteJudgeQuestion(Long id);

    JudgeQuestion getJudgeQuestionById(Long id);

    List<JudgeQuestion> getAllJudgeQuestions();
    boolean checkDuplicate(JudgeQuestion judgeQuestion);

    void importJudgeQuestions(List<JudgeQuestion> judgeQuestions);

    Page<JudgeQuestion> getAllJudgeQuestions(Pageable pageable); // 分页查询
}